package cn.hniu.pojo.util;

import lombok.Data;

@Data
public class Result {
    private Integer code;//数字状态 如：400 200
    private String message;//文字状态 如：发送失败 发送成功
    private Object data;//对象

    public Result(Integer code, Object data) {
        this.code = code;
        this.data = data;
    }

    public Result(Integer code, String message) {
        this.code = code;
        this.message = message;
    }


}
